package com.service;

import com.pojo.Page;
import com.pojo.Tour;
import com.pojo.User;

/**
 * @Author hjb
 * @Version 1.0
 * @Contact 1754729389@qq.com
 */
public interface UserService {

    public int deleteUserById(Integer id);

    /**
     * 注册用户
     * @param user
     */
    public void regist(User user);

    /**
     *登录
     * @param user
     */
    public User login(User user);

    /**
     * 检查用户名是否可用
     * @param username
     * @return 返回true表示用户名已存在
     */
    public boolean existsUserName(String username);

    public Page<User> page(int pageNo, int pageSize);

    public User queryUserById(Integer id);

    public int updateUser(User user);
}
